function P = decreasingdist(n)
for i=1:n
    P(i)=i*2/(n*(n+1));
end
end